//
//  searchView.h
//  scrollViewAutolayoutTest
//
//  Created by 魏强 on 15/10/30.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol KDSearchViewDelegate;
@class KDRGBModel;
@interface KDSearchView : UIView

/**
 *  二次检索时输入的text
 */
@property (nonatomic, copy) NSString * text;
/**
 *  圆角半径
 */
@property (nonatomic, assign) CGFloat radius;
/**
 *  背景色的rgb
 */
@property (nonatomic, copy) UIColor *SearchViewBackGroundColor;

@property (nonatomic, weak) UIColor *textColor;

@property (nonatomic, weak) id<KDSearchViewDelegate>  delegate;
/**
 *  背景色的rgb
 */
@property (nonatomic, strong) KDRGBModel *rgb;
/**
 *  搜索图标的名字
 */
@property (nonatomic, copy) NSString * imageName;
/**
 *  占位符
 */
@property (nonatomic, copy) NSString * placeholder;
/**
 *  是不是点return下去键盘的时候就搜索
 */
@property (nonatomic, assign, getter=isReturnSearch) BOOL returnSearch;

@end
@protocol KDSearchViewDelegate <NSObject>
/**
 *  搜索按钮被点击了
 */
- (void)KDSearchViewWithSearchBtnClick:(KDSearchView *)searchView;

@end